package com.yc.testparm;

public class Findsushu {
	
	public void m1(int n) {
		if (n > 1) {
			System.out.println(1);
		}
			
		for (int i = 2; i < n+1; i++) {
			boolean fal = true;
			for (int j = 2; j < i; j++) {
				if (i%j == 0) {
					fal = false;
				}
			}
			if (fal) {
				System.out.println(i);
			}
		}
	}

	public static void main(String[] args) {
		Findsushu fs = new Findsushu();
		fs.m1(100);

	}

}
